package com.aihna.common.pay.config;


import com.aihna.common.pay.core.PayClientFactory;
import com.aihna.common.pay.core.impl.PayClientFactoryImpl;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * 使用工厂类实现多支付渠道
 */
@AutoConfiguration
public class PayAutoConfiguration {

    @Bean
    public PayClientFactory payClientFactory() {
        return new PayClientFactoryImpl();
    }

}
